//
// Created by 文道江 on 16/1/8.
// Copyright (c) 2016 文道江. All rights reserved.
//

#import "SendSMSController.h"


@implementation SendSMSController {

}

+ (instancetype)controllerWithBody:(NSString *)body address:(NSArray *)address {
    return [[self alloc] initWithBody:body address:address];
}


- (instancetype)initWithBody:(NSString *)body address:(NSArray *)address {
    self = [super init];
    if (self) {
        self.body = body;
        self.recipients = address;
        self.messageComposeDelegate = self;
    }

    return self;
}

- (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result {
    [controller dismissViewControllerAnimated:NO completion:nil];
}

@end